import service from '@/axiosConfig'

// get请求
function getReq({url,params}) {
  return service({
    url: url,
    method:'get',
    params:params
  });
}

// post请求
function postReq({url,data}) {
  return service({
    url: url,
    method:'post',
    data
  });
}

export default {
  getReq,
  postReq
}
